package com.fj.netty.protocol.custom;

import lombok.Data;

import java.io.Serializable;

/**
 * 自定义消息顶级父类（抽象类）
 * @author fj
 * @date 2024/1/11 10:14
 */
@Data
public abstract class Message implements Serializable {
    private SerializeAlgorithm serializeLogic;
    private Byte version;
    private Integer sequence;

    public static final byte LOGIN_REQUEST_MESSAGE = 1;
    public static final byte SEND_REQUEST_MESSAGE = 2;

    abstract protected byte getMessageType();
}
